package com.vehicle.service;


import com.vehicle.bean.DataGridView;
import com.vehicle.bean.PageVo;
import com.vehicle.bean.ResultDto;
import com.vehicle.pojo.Btype;
import com.vehicle.pojo.Car;
import com.vehicle.pojo.Petrol;
import com.vehicle.pojo.PetrolRecord;

import java.util.List;

public interface PetrolRecordService {

    //查询所有汽车信息
   List<Car> findAllCar();

   //查询所有加油信息
    DataGridView findAllPetrolRecord(Integer carid, PageVo pageVo);

    //批量删除加油信息
    ResultDto deleteIds(String idArray);

    //展示所有加油站信息
    List<Btype> findAllBtypeByPetrol();

    //动态添加数据到添加页面
    PetrolRecord findFinalRecord(Integer carid);

    //查询所有油料信息
    List<Petrol> findAllPetrol();

    //添加加油信息
    ResultDto petrolRecordAdd(PetrolRecord petrolRecord);

    //根据Id查询记录
    PetrolRecord findPetrolRecordById(Integer petrolid);

    //根据id修改记录
    ResultDto updatePetrolRecord(PetrolRecord petrolRecord);

    //删除修改记录
    ResultDto deletePetrolRecord(Integer petrolid);
}
